<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>喜乐康智能家居系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
  	<script type="text/javascript">
  	var idType = 2;
  	var scheduleType = 1;
  	var advancedDeviceId = 0;
  	var pressAdvancedClass;
  	function settingAdvancedDeviceListDown(upDown){

  		settingDown("setting_advanced_device_room_list","setting_advanced_device_left1_down",230,upDown);
  	}

  	function settingAdvancedDeviceListUp(upDown){
  		settingUp("setting_advanced_device_room_list","setting_advanced_device_left1_up",upDown);
  		
	}

	function pressRightSceneAdvanced(sceneId,deviceType){
		var className = $("#setting_advanced_device_room_list_detail_img_li"+sceneId).attr("className");
  		if(advancedDeviceId!=0){
  			$("#setting_advanced_device_room_list_detail_img_li"+advancedDeviceId).attr("className",pressAdvancedClass);
  		}
  		pressAdvancedClass = className;
  		advancedDeviceId = sceneId;
  		$("#setting_advanced_device_room_list_detail_img_li"+sceneId).attr("className","scene_use_img_li_s_press");
  		
  		$("#setting_device_schedule").load(evn_Path+"setting!settingAdvancedDeviceSchedule.do?deviceId="+sceneId+"&idType="+idType);
  		$(".setting_advanced_device_right").load(evn_Path+"setting!settingAdvancedDeviceScheduleTime.do");
	};
  	</script>
  	
  </head>
  
  <body>
  	<div class="setting_advanced_device_left">
  		<div style="height: 240px;width: 304px;">
	  		<div class="setting_advanced_detail_left">
	  			<div class="setting_advanced_device_room_list">
	  					<div class="setting_advanced_device_room_list_detail" style="background-image: url('')" id="setting_advanced_device_room_list_detail<s:property value="roomId"/>">
	  						<div style="width: 240px;float:left;margin-left: 5px;" id="setting_advanced_device_room_list_detailList<s:property value="roomId"/>">
	  							<s:iterator id="scene" value="sceneList" status="status">
	  								<div name="settingAdvancedDeviceListName" deviceId="<s:property value="sceneId"/>" onclick="pressRightSceneAdvanced(<s:property value="sceneId"/>)"  id="setting_advanced_device_room_list_detail_img_li<s:property value="sceneId"/>" 
										class="scene_use_img_li_s"
										style="position: relative;margin-bottom:12px;font-size:12px;"
										
										><s:property value="sceneName"/>
									</div>
	  							</s:iterator>
	  						</div>
	  					</div>
	  			</div>
	  			
	  		</div>
	  		<div class="setting_advanced_device_left1_up_down">
	  			<div class="setting_advanced_device_left1_up" onmousedown="settingAdvancedDeviceListUp('down')" onmouseup="settingAdvancedDeviceListUp('up')"></div>
	  			<div class="setting_advanced_device_left1_middle"></div>
	  			<div class="setting_advanced_device_left1_down" onmousedown="settingAdvancedDeviceListDown('down')" onmouseup="settingAdvancedDeviceListDown('up')"></div>
	  		</div>
  		</div>
  		<div id="setting_device_schedule" style="height: 157px;width: 304px;">
  			
  		</div>
  	</div>
	<div class="setting_advanced_device_right">
		
	</div>
  </body>
</html>
